package consts

const (
	VERSIONAPP = "1.0.0"

	// 支付类型
	PAY_PENDING       = "pending"       //待支付
	PAY_PAYING        = "paying"        //支付中
	PAY_COMPLETED     = "completed"     //支付已完成
	PAY_FAIL          = "pay_fail"      //支付失败
	PAY_SYSTEM_CANCEL = "system_cancel" //系统取消

	// 短剧解锁类型
	UNLOCAK_TYPE_ALL    = "subscription" //全局解锁
	UNLOCAK_TYPE_SINGLE = "one_time"     //单集解锁

	//短剧收藏key
	SHORT_DRAMA_COLLECT = "user_collect_short_drama"
	//短剧历史key
	SHORT_DRAMA_HISTORY = "user_history_short_drama"

	OCEANPAYMENT  = "ocean_payment"
	PAYPALPAYMENT = "paypal"
	//用户来源
	THROW_IN = "THROW_IN" //投放
	NATURAL  = "NATURAL"  //自然流

	// jwt的用户key
	USER_JWT_KEY = "userInfo"

	// 短剧记录
	HISTORY = "HISTORY" // 观看历史
	COLLECT = "COLLECT" // 收藏短剧

	// 登录状态
	LOGIN_IN  = 1
	LOGIN_OUT = 2

	FACEBOOK = "FACEBOOK"
	GOOGLE   = "GOOGLE"
	VISITOR  = "VISITOR"
)

// CurrencyMap 币种
var CurrencyMap = map[string]string{
	"US": "USD", // 美国
	"JA": "JPY", // 日本
	"IN": "INR", // 印度
	"EN": "GBP", // 英国
}

// LoginTypeMap 登录类型
var LoginTypeMap = map[string]string{
	"facebook": FACEBOOK,
	"google":   GOOGLE,
	"visitor":  VISITOR,
}
